<template>
    <div class="baseBox">
        <pagetitle></pagetitle>
        <div class="warmprompt">
            <div class="warmprompttitle">农机基本信息</div>
            <el-form :inline="true" :model="formInline" class="demo-form-inline">
                <el-form-item label="农机分组">
                    <el-select v-model="formInline.region" placeholder="输入或选择农机的分组">
                        <el-option label="区域一" value="shanghai"></el-option>
                        <el-option label="区域二" value="beijing"></el-option>
                    </el-select>
                </el-form-item>
                <el-form-item label="农机供应商">
                    <el-select v-model="formInline.region" placeholder="输入或选择农机的供应商">
                        <el-option label="区域一" value="shanghai"></el-option>
                        <el-option label="区域二" value="beijing"></el-option>
                    </el-select>
                </el-form-item>
                <el-form-item label="农机性质">
                    <el-select v-model="formInline.region" placeholder="选择农机生产性质">
                        <el-option label="区域一" value="shanghai"></el-option>
                        <el-option label="区域二" value="beijing"></el-option>
                    </el-select>
                </el-form-item>
                <!-- <el-form-item>
                    <el-button type="primary" @click="onSubmit">查询</el-button>
                </el-form-item> -->
            </el-form>
        </div>
        <div class="baseBoxContent">
            <div class="baseBoxsearch">
                <div class="basesright">
                    <!-- <el-input v-model="input" class="input" suffix-icon="el-icon-search" placeholder="请输入内容"></el-input> -->
                    <el-button type="primary">导出农机清单</el-button>
                    <el-button @click="router.push('/resource/equipment/addnewfarmmachinery')">添加新农机</el-button>
                </div>
            </div>
            <el-table :data="tableData" border style="width: 100%">
                <el-table-column prop="date" label="分类序号" width="88"> </el-table-column>
                <el-table-column prop="name" label="添加时间"> </el-table-column>
                <el-table-column prop="address" label="农机分组"> </el-table-column>
                <el-table-column prop="address" label="供应商品牌"> </el-table-column>
                <el-table-column prop="address" label="农机名称"> </el-table-column>
                <el-table-column prop="address" label="设备型号"> </el-table-column>
                <el-table-column prop="address" label="计量单位"> </el-table-column>
                <el-table-column prop="address" label="单价"> </el-table-column>
                <el-table-column prop="address" label="配件特征"> </el-table-column>
                <el-table-column prop="address" label="采购方式"> </el-table-column>
                <el-table-column prop="address" label="操作" width="130">
                    <template #default="scope">
                        <el-button type="primary" link>查看</el-button>
                        <el-button type="danger" link>删除</el-button>
                    </template>
                </el-table-column>
            </el-table>
            <div class="baseTableTip">说明：罗列供应的智慧农机。</div>
            <div class="btns">
                <el-button type="primary">返回</el-button>
                <el-button>保存</el-button>
                <el-button>删除农机资源</el-button>
            </div>
        </div>
    </div>
</template>
<script lang="ts" setup>
import { ref } from "vue";
import { useRouter } from "vue-router";
const router = useRouter();
const input = ref("");
const tableData = ref([{}, {}]);
const formInline: any = ref({});
// export default {
//     data() {
//         return {
//             input: '',
//             tableData: [{}, {}, {}, {}],
//             formInline: {},
//             dialogVisible: false
//         }
//     },
//     methods: {
//         // 跳转到指定页面
//         toAssignPage(url, tag, title) {
//             this.$store.commit('setMenuIdentification', {
//                 tag,
//                 title
//             })
//             this.$fn.setSelectMenu(url, tag)
//         }
//     }
// }
</script>
<style lang="scss" scoped>
.baseBox {
    width: 100%;
    .warmprompt {
        padding: 20px;
        background: #ffffff;
        .warmprompttitle {
            font-size: 16px;
            font-weight: bold;
            color: #252b3a;
        }
        .demo-form-inline {
            margin-top: 20px;
            .addRess {
                width: 300px;
            }
        }
    }
    .baseBoxContent {
        background: #ffffff;
        box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.03);
        margin-top: 15px;
        padding: 30px 0;
        .baseBoxsearch {
            margin-bottom: 30px;
        }
        .baseBoxsearch,
        .basesright {
            display: flex;
            justify-content: flex-end;
            align-items: center;
            .input {
                width: 350px;
                margin-right: 20px;
            }
        }
        .baseTableTip {
            font-size: 16px;
            color: #333333;
            margin-top: 10px;
        }
        .btns {
            margin-top: 30px;
            button {
                margin-right: 20px;
            }
        }
    }
}
.uploadImgBox {
    width: 120px;
    height: 120px;
}
.saveBtn {
    width: 100%;
}
</style>
